package com.logic.modular.gameCore.cultivate.exp;

import com.comment.pojo.domain.logic.core.CoreExperience;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import com.comment.util.message.ResponseResult;

import java.util.List;


/**
 * 全局经验表(CoreExperience)表服务控制层
 *
 * @author cxy
 * @since 2024-08-05 16:14:02
 */
@Api(tags = "全局经验表(CoreExperience)") 
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("/coreExperience")
public class CoreExperienceController {
    @Resource
    private CoreExperienceServiceImpl coreExperienceService;
    
    @ApiOperation("获取全局经验表列表")
    @PostMapping("/list")
    public ResponseResult<List<CoreExperience>> list() {
        return ResponseResult.success(coreExperienceService.listCache());
    }
}
